package com.yc.damaimaven.web;



import com.yc.damaimaven.mapper.DemoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController


public class TestAction {

    @RequestMapping("hello")
    public String hello(String name){
        return "hello"+name;
    }

    @Autowired
    DemoMapper demoMapper;
    @RequestMapping("users")
    public List<?> queryAllUser(){
        return demoMapper.selectAllUser();
    }

}
